﻿using System.ServiceModel;
using System.ServiceModel.Web;
using PlanB.ShareDove.ConferenceOrganization.ServiceLayer.ServiceFacade.Entities;
using System;

namespace ShareDoveRestService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IShareDove" in both code and config file together.
    [ServiceContract]
    public interface IShareDove
    {
        [OperationContract]
        [WebGet(UriTemplate = "/GetSessions", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
        SessionsList GetSessions();

        [OperationContract]
        [WebGet(UriTemplate = "/GetSessionsArray", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
        ConferenceSessionLite[] GetSessionsArray();

        [OperationContract]
        [WebGet(UriTemplate = "/GetDummy", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
        Dummy[] GetDummy();
    }

    public class SessionsList
    {
        public ConferenceSessionLite[] AllSessions { get; set; }
    }

    public class Dummy
    {
        public string id;
        public string title;
        public string datum;
    }

}

